const delay=(duration:number=1)=>(t,k)=>{
  window.setTimeout(t[k],duration*1000);
}

export {delay}